package com.shop.util;

public class ShopUtil {

	
	public static int getPage(int count ,int pageSize){
		
		int i = -1 ;
		if(pageSize ==0){
			pageSize =3 ;
			i = count/pageSize;
			System.out.println("=="+i);
		}else{
			i = count/pageSize;
			System.out.println("==,,"+i);
		}		
		return count%pageSize==0?i:(i+1);
	}
}
